.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
  background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-6));
  border-top-right-radius: var(--mantine-radius-md);
  border-top-left-radius: var(--mantine-radius-md);
  border-bottom: 1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4));

  @media (max-width: $mantine-breakpoint-sm) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.controls {
  @media (max-width: $mantine-breakpoint-sm) {
    margin-top: 0;
    flex-direction: row-reverse;
  }
}

.controlLabel {
  margin-left: var(--mantine-spacing-xs);
}

.action {
  border-color: light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-7));
  background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));

  @mixin hover {
    background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-7));
  }
}

.actions {
  @media (max-width: $mantine-breakpoint-sm) {
    display: none;
  }
}
